let express = require('express')
let router = express.Router()

let sendCode = require('../../utils/sendcode');


router.get('/',(req,res,next)=>{
  let tel = req.query.tel;
  console.log(0,tel)

  sendCode(tel,'2103给你发送的验证码').then(
    res=>{
      //res == 含有第三方服务器发送到手机的信息  入库
      console.log(5)
      res.send({err:1,msg:'验证码已发送'})
    }
  )

})
module.exports=router;